<template>
  <div class="card-wrapper">
    <div class="card">
      <div class="header">
        <span class="weekday">{{ data.weekday }}</span>
      </div>
      <h1 class="text lunar">{{ data.lunar }}</h1>
      <h2 class="text date">{{ data.date }}</h2>
    </div>
  </div>
</template>

<script>
export default {
  name: "DayCard",
  props: {
    data: Object,
  },
};
</script>

<style lang="scss" scoped>
.card-wrapper {
  width: 100%;
  height: 160px;
  .card {
    width: 90%;
    height: 160px;
    margin: auto;
    border-radius: 20px;
    border: 1px solid #f34;
    text-align: center;
    overflow: hidden;
    background-image: url("../../assets/img/bg.jpg");
    background-size: 100% 100%;
    .header {
      text-align: left;
      padding-left: 2rem;
      height: 40px;
      line-height: 40px;
      background-color: #24242444;
      font-weight: bold;
    }
    .lunar {
      margin-top: 20px;
      color: #f34;
      font-size: 32px;
      font-weight: 600;
    }
    .date {
      margin-top: 10px;
      color: #aaa;
    }
  }
}
</style>
